package com.zpark.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpark.mybatisplus.bean.Ranking;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RankingMapper extends BaseMapper<Ranking> {

    @Select("select * from ranking1 where film_name = #{key}")
    public List<Ranking> selectKeyByFilmName(@Param("key") String key);
}
